﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
using Jalal.Library.Web;
using BCGC.BLL.BusinessObject.UserAccount;
using BCGC.BLL.Helper;

public partial class Templates_Admin : BaseMaster
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //SetStyleSheetLinksLocation();
        if (!IsPostBack)
        {
            mnuAdminMenu.StaticPopOutImageUrl = "~/App_Themes/"+ Page.Theme + "/image/menu-down.gif";
            mnuAdminMenu.DynamicPopOutImageUrl = "~/App_Themes/" + Page.Theme + "/image/menu-right.gif";
        }
    }

    protected void Menu_ItemDataBound(object sender, MenuEventArgs e)
    {
        if (e.Item.Text.ToLower().Contains("edit"))
        {
            //e.Item.Enabled = false;
            e.Item.Parent.ChildItems.Remove(e.Item);
        }
    }

    protected void Logout_Click(object sender, EventArgs e)
    {
        Admin admin = new Admin();
        admin.Logout();
        Response.Redirect(CustomSiteMap.AdminLogin);
    }
}
